extends "../xipeier-3/xipeier-3.gd"


var baseId = ""
var upText1 = "刚烈反弹的伤害翻倍"
var upText2 = "战斗开始时，获得5秒<反击>"
func _extInit():
	._extInit()
	lv = 4             #等级的设置
	addSkill("血量越低，减伤越高(上限40%)", "极限防御")
	
func _onHurt(atkInfo):
	._onHurt(atkInfo)
	if atkInfo.hurtVal > 0:
		var r = att.hp/att.maxHp
		r = max(r, 0.4)
		atkInfo.hurtVal *= r

func upgrade():
	.upgrade()
	if upgraded == 1:
		p3 = 0.4

func _onBattleStart():
	._onBattleStart()
	if upgraded == 2:
		addBuff(buff.b_fanJi.new(5))
